051055896d31bbccdf051bcab5dc69d3cf21da8b,compiler/frontend/src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java,BindingContextUtils,recordExpressionType,#JetExpression#BindingTrace#JetScope#JetTypeInfo#,280

Before Change


            @NotNull JetExpression expression, @NotNull BindingTrace trace,
            @NotNull JetScope resolutionScope, @NotNull JetTypeInfo result
    ) {
        JetType type = result.getType();
        if (type != null) {
            trace.record(BindingContext.EXPRESSION_TYPE, expression, type);
        }
        trace.record(BindingContext.PROCESSED, expression);
        if (result.getDataFlowInfo() != DataFlowInfo.EMPTY) {

After Change


    }

    public static void updateRecordedType(
            @Nullable JetType type,
            @NotNull JetExpression expression,
            @NotNull BindingTrace trace
    ) {
        if (type == null) return;
        trace.record(BindingContext.EXPRESSION_TYPE, expression, type);
        trace.record(BindingContext.PROCESSED, expression);
    }